package weixintest;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/9 23:28
 */
public class FloatTest {
    public static void main(String[] args) {
        int a = 3000000;
        int b = 30000000;
        float f1 = a;
        float f2 = b;
        System.out.println("3000000==3000001 " + (f1 == f1 + 1));
        System.out.println("30000000==30000001 " + (f2 == f2 + 1));
        System.out.println("3000000的有效二进制位数：" + Integer.toBinaryString(a).length());
        System.out.println("30000000的有效二进制位数：" + Integer.toBinaryString(b).length());
    }
}
